package com.himilco.ocana.workflow.core.common;

import java.util.Date;

public class SystemStatus {

	private String currentStatus;
//	private DateUtils dateUtils;
	Date startDate = new Date();
	
	public SystemStatus() {
//		dateUtils = new DateUtils();
	}
	public String getCurrentStatus() {
		return currentStatus;
	}
	public void setCurrentStatus(String currentStatus) {
		this.currentStatus = currentStatus;
	}
//	public DateUtils getDateUtils() {
//		return dateUtils;
//	}
//	public void setDateUtils(DateUtils dateUtils) {
//		this.dateUtils = dateUtils;
//	}
	
	Boolean isDateGreater5mn() {

		Date d = new Date(); 
		boolean status=false;
		if (startDate.getDay() == d.getDay()) {

			if (startDate.getHours() == d.getHours()) {
				if (startDate.getMinutes() == d.getMinutes()-5) {
					status= true;
				}
			}

		} 
		return status;
	}
}
